<template>
  <div class="baseLog">
    <div class="btns">
       <el-button type="primary" size="small" @click="loadbaselog">搜索</el-button>
      <el-button type="primary" size="small">新增</el-button>
    </div>
    
    <el-table size="small" :data="baseLogs">
      <el-table-column type="index" index="1" label="序号"></el-table-column>
      <el-table-column label="姓名" prop="realname" align="center"></el-table-column>
      <el-table-column label="方式" prop="method" align="center"></el-table-column>
      <el-table-column label="内容" prop="content" align="center"></el-table-column>
      <el-table-column label="日志时间" prop="logTime" align="center"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import { get, post } from "@/utils/request";
export default {
  data() {
    return {
      baseLogs:[]
    }
  },
  created() {
    this.loadbaseLogs();
  },

  methods: {
    loadbaseLogs() {
      let url = "http://localhost:8888/base_log/select"
      get(url).then((resp) => {
        this.baseLogs = resp.data;
      });
    }
  },
};
</script>
<style scoped>

</style>